
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>{wc:$webname}</title>
    <meta content="app-id=518966501" name="apple-itunes-app" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=no, maximum-scale=1.0"/>
    <meta content="yes" name="apple-mobile-web-app-capable" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <meta content="telephone=no" name="format-detection" />
    <link href="{G_TEMPLATES_IMAGE}/mobile/touch-icon.png" rel="apple-touch-icon-precomposed" />
    <link href="favicon.ico" rel="shortcut icon" />
    <link href="{G_TEMPLATES_CSS}/mobile/comm.css" rel="stylesheet" type="text/css" />
	<link href="{G_TEMPLATES_CSS}/mobile/index.css" rel="stylesheet" type="text/css" />
	<link href="{G_TEMPLATES_CSS}/mobile/style.css" rel="stylesheet" type="text/css" />
	<script src="{G_TEMPLATES_JS}/mobile/jquery190.js" language="javascript" type="text/javascript"></script>
	<script id="pageJS" data="{G_TEMPLATES_JS}/mobile/Index.js" language="javascript" type="text/javascript"></script>
	<script src="{G_TEMPLATES_JS}/mobile/swiper.min.js"></script>
	<style>.swiper-container .swiper-wrapper .swiper-slide {
		position: relative;
		width: 100%;
		border-radius: 20px;
	}
	
	.swiper-container .swiper-wrapper .swiper-slide img {
		width: 100%;
		height: auto;
	}
	
	.swiper-container .swiper-wrapper .swiper-slide-active {
		width: 100%;
	}
	
	.swiper-pagination {
			bottom: .5rem!important;
	}
	
	.swiper-container .swiper-wrapper .swiper-slide .play_btn {
		z-index: 99;
		position: absolute;
		width: 12%;
		height: auto;
		left: 0;
		right: 0;
		top: 50%;
		transform: translateY(-50%);
		margin: auto;
	}</style>
</head>
<body>
<div class="h5-1yyg-v1" id="loadingPicBlock">    

{wc:templates "mobile/index","header"}

<!-- 内页顶部 -->

    <input name="hidStartAt" type="hidden" id="hidStartAt" value="0" />
    <!-- 焦点图 -->
	<!-- <section id="sliderBox" class="hotimg"></section> -->
	<div class="swiper-container swiper-container-horizontal"> 
		<div class="swiper-wrapper"> 
															 <div class="swiper-slide swiper-slide-active" style="width: 640px;"> 
				<a href="http://hy.yungoucms.cn/"><img src="https://yg.yryjs.cn/statics/uploads/shopimg/20150111/45034150176408.jpg"> </a>
			   </div> 
																   <div class="swiper-slide swiper-slide-next" style="width: 640px;"> 
				<a href="http://hy.yungoucms.cn/"><img src="https://yg.yryjs.cn/statics/uploads/shopimg/20150111/75670698176417.jpg"> </a>
			   </div> 
																   <div class="swiper-slide" style="width: 640px;"> 
				<a href="http://hy.yungoucms.cn/"><img src="https://yg.yryjs.cn/statics/uploads/shopimg/20150111/66281312176445.jpg"> </a>
			   </div> 
												   
		</div> 
		<div class="swiper-pagination swiper-pagination-clickable"><span class="swiper-pagination-bullet swiper-pagination-bullet-active"></span><span class="swiper-pagination-bullet"></span><span class="swiper-pagination-bullet"></span></div> 
	   </div>   
	   <script>
		$(function() {
			 var mySwiper = new Swiper('.swiper-container', {
					autoplay: 5000, //可选选项，自动滑动
					pagination: '.swiper-pagination',
					paginationClickable: true,
					onTouchMove: function(swiper){
					$(".play_btn").show();
					for(var i = 0, L = $("video").length; i < L;i++) {
						$("video")[i].pause();
					}
				}
				})
			
			// $(".play_btn").click(function() {
			// 	$(this).hide();
			// 	$(this).next()[0].play();
			// 	// $(this).next()[0].controls = true; 
			// 		mySwiper.stopAutoplay();
			// 	$(this).next()[0].onended =function() {
			// 		$(".play_btn").show();
			// 		mySwiper.startAutoplay();
			// 	}
			// });
		});
	</script>
    <!-- announcement -->
    <section class="g-main">
	    <div class="m-tt1">
		    <h2 class="fl"><a href="{WEB_PATH}/mobile/mobile/lottery">announcement</a></h2>
		    <div class="fr u-more">
			    <a href="{WEB_PATH}/mobile/mobile/lottery" class="u-rs-m1"><b class="z-arrow"></b></a>
		    </div>
	    </div>
	    <article class="h5-1yyg-w310 m-round m-lott-li" id="divLottery">
		    <ul class="clearfix">
		    {wc:loop $shopqishu $qishu}
            {wc:php:start}
            $qishu['q_user'] = unserialize($qishu['q_user']);
            {wc:php:end}
			        <li>
		                <a href="{WEB_PATH}/mobile/mobile/item/{wc:$qishu['id']}" class="u-lott-pic">
		                    <img  src="{G_UPLOAD_PATH}/{wc:$qishu['thumb']}" border="0" alt="" />
		                </a>
		                <span>congratulations<a href="{WEB_PATH}/mobile/mobile/userindex/{wc:$qishu['q_uid']}" class="blue z-user">{wc:fun:get_user_name($qishu['q_uid'])}</a>get</span>
			        </li>
		        
			   {wc:loop:end}     
		        
		    </ul>
	    </article>
    </section>
    <!-- Today's time limit -->
    <section class="g-main">
	    <div class="m-tt1" style="display: flex;">
		    <h2 class="fl"><a href="{WEB_PATH}/mobile/autolottery">Today's time limit</a></h2>
		    <div class="fl z-tips">Time opens at 10, 15, 22 o'clock every day</div>
		    <div class="fr u-more">
			    <a href="{WEB_PATH}/mobile/autolottery/next" class="u-rs-m2"><b class="z-arrow"></b></a>
		    </div>
	    </div>
	    <article id="autoLotteryBox" class="clearfix h5-1yyg-w310 m-round overflow">
	        <ul id="divTimerItems" class="slides">
			
			 {wc:php:start}
			   $count=count($jinri_shoplist);
			 {wc:php:end}    
			  {wc:if $count>1}
			   <div class="loading"><b></b>loading</div>
			  {wc:else}
			    {wc:if $count==0}
				<div id="divNone" class="haveNot z-minheight" style="display:block"><s></s><p>Sorry, we didn't release timelimit today!</p>
		      </div>
				{wc:if:end}
			  {wc:if:end}
			  
			 {wc:loop $jinri_shoplist $shop}
			 
            {wc:php:start}
            	$shop['time_H'] = abs(date("H",$shop['xsjx_time']));
				$sysj=$shop['xsjx_time']-time();
            {wc:php:end}         
            {wc:if time() > $shop['xsjx_time'] } 
			
			<li class="m-xs-li" txt="{wc:$shop['time_H']}点" codeid="{wc:$shop['id']}" uweb="{wc:fun:idjia($shop['q_uid'])}">
				<article class="clearfix m-xs-ct m-xs-End">
					<div class="u-xs-pic">
						<div class="z-xs-pic">
						<a href="{WEB_PATH}/mobile/mobile/item/{wc:$shop['id']}"><img  src="{G_UPLOAD_PATH}/{wc:$shop['thumb']}" border=0 /></a>
						</div>
						<div class="z-xs-time"><b>It's over</b></div>
					</div>
					<div class="u-xs-con">
						<div class="clearfix u-xs-name">
						<a class="u-xs-name-img" href="{WEB_PATH}/mobile/mobile/userindex/{wc:$shop['q_uid']}">
					<img name="uImg" border="0" src="{G_UPLOAD_PATH}/{wc:fun:get_user_key($shop['q_uid'],'img')}"/></a>
						<div class="u-xs-name-r"><p>congratulations<a name="uName" href="{WEB_PATH}/mobile/mobile/userindex/{wc:$shop['q_uid']}" class="z-user blue">{wc:fun:get_user_name($shop['q_uid'])}</a>get</p><p>lucky{wc:fun:_cfg('web_name_two')}code：<em class="orange">{wc:$shop['q_user_code']}</em></p><p>In total{wc:fun:_cfg('web_name_two')}：<em class="orange">{wc:$user_shop_number[$shop['q_uid']][$shop['id']]}</em>Persons</p></div></div><ins class="z-promo">value:<em class="arial">￥{wc:$shop['money']}</em></ins>
						<div class="Progress-bar"><p class="u-progress" title="Completed{wc:fun:width($shop['canyurenshu'],$shop['zongrenshu'],100)}%">
							<span class="pgbar" style="width:{wc:fun:width($shop['canyurenshu'],$shop['zongrenshu'],100)}%;">
							   <span class="pging"></span>
							</span></p>
							<ul class="Pro-bar-li">
								<li class="P-bar01"><em>{wc:$shop['canyurenshu']}</em>Participated</li>
								<li class="P-bar02"><em>{wc:$shop['zongrenshu']}</em>max people</li>
								<li class="P-bar03"><em>{wc:$shop['zongrenshu']-$shop['canyurenshu']}</em>surplus</li>
							</ul>
						</div>
					</div>
				</article>
			</li>
			 {wc:else}
			<li class="m-xs-li" txt="{wc:$shop['time_H']}点" codeid="{wc:$shop['id']}" >
			  <article class="clearfix m-xs-ct ">
			      <div class="u-xs-pic">
				       <div class="z-xs-pic">
			             <a href="{WEB_PATH}/mobile/mobile/item/{wc:$shop['id']}"><img  src="{G_UPLOAD_PATH}/{wc:$shop['thumb']}" border=0 /></a>
			          </div>			         				 
					  <div name="timerItem" class="z-xs-time" time="{wc:$sysj}"><em>00</em>Time<em>00</em>branch<em>00</em>second<s class="z-aw-tblr"></s>
				      </div>
				  </div>
				  <div class="u-xs-con">
				      <a href="{WEB_PATH}/mobile/mobile/item/{wc:$shop['id']}" class="gray6 z-tt">(The third {wc:$shop['qishu']}stage ){wc:$shop['title']}</a>
				      <ins class="z-promo">value:<em class="arial">￥{wc:$shop['money']}</em></ins>
				      <div class="Progress-bar"><p class="u-progress" title="Completed{wc:fun:width($shop['canyurenshu'],$shop['zongrenshu'],100)}%"><span class="pgbar" style="width:{wc:fun:width($shop['canyurenshu'],$shop['zongrenshu'],100)}%;"><span class="pging"></span></span></p>
					    <ul class="Pro-bar-li">
					     <li class="P-bar01"><em>{wc:$shop['canyurenshu']}</em>Participated</li>
						 <li class="P-bar02"><em>{wc:$shop['zongrenshu']}</em>max people</li>
						 <li class="P-bar03"><em>{wc:$shop['zongrenshu']-$shop['canyurenshu']}</em>surplus</li>
						</ul>
					   </div>
				  </div>
				 </article>
			</li>
			{wc:if:end}
            {wc:loop:end}
			
			
		 </ul>
	        
	    </article>
    </section>
    <!-- recommendation -->
    <section class="g-main">
	    <div class="m-tt1">
		    <h2 class="fl"><a href="{WEB_PATH}/mobile/mobile/glist">recommendation</a></h2>
		    <div class="fr u-more">
			    <a href="{WEB_PATH}/mobile/mobile/glist" class="u-rs-m1"><b class="z-arrow"></b></a>
		    </div>
	    </div>
	    <article class="clearfix h5-1yyg-w310 m-round m-tj-li">
		    <ul id="ulRecommend">
		        {wc:loop $shoplistrenqi $renqi}
			        <li id="{wc:$renqi['id']}">
			            <div class="f_bor_tr">
			                <div class="m-tj-pic">
			                    <a href="{WEB_PATH}/mobile/mobile/item/{wc:$renqi['id']}" class="u-lott-pic">
			                        <img  src="{G_UPLOAD_PATH}/{wc:$renqi['thumb']}" border=0 alt="" />
			                    </a>
			                    <ins class="u-promo">value:￥{wc:$renqi['money']}</ins>
			                </div>
			                <div class="Progress-bar">
								<p class="u-progress" title="Completed{wc:fun:percent($renqi['canyurenshu'],$renqi['zongrenshu'])}">
								<span class="pgbar" style="width:{wc:$renqi['canyurenshu']/$renqi['zongrenshu']*100}%;">
								<span class="pging"></span>
								</span>
								</p>
								<ul class="Pro-bar-li">
									<li class="P-bar01"><em>{wc:$renqi['canyurenshu']}</em>Participated</li>
									<li class="P-bar02"><em>{wc:$renqi['zongrenshu']}</em>max people</li>
									<li class="P-bar03"><em>{wc:$renqi['zongrenshu']-$renqi['canyurenshu']}</em>surplus</li>
								</ul>
							</div>
			            </div>
                    </li>
                {wc:loop:end}
		    </ul>
	    </article>
    </section>
    

{wc:templates "mobile/index","footer"}
<script language="javascript" type="text/javascript">
  var Path = new Object();
  Path.Skin="{G_TEMPLATES_STYLE}";  
  Path.Webpath = "{WEB_PATH}";
  
    var Base = {
        head: document.getElementsByTagName("head")[0] || document.documentElement,
        Myload: function(B, A) {
            this.done = false;
            B.onload = B.onreadystatechange = function() {
                if (!this.done && (!this.readyState || this.readyState === "loaded" || this.readyState === "complete")) {
                    this.done = true;
                    A();
                    B.onload = B.onreadystatechange = null;
                    if (this.head && B.parentNode) {
                        this.head.removeChild(B)
                    }
                }
            }
        },
        getScript: function(A, C) {
            var B = function() {};
            if (C != undefined) {
                B = C
            }
            var D = document.createElement("script");
            D.setAttribute("language", "javascript");
            D.setAttribute("type", "text/javascript");
            D.setAttribute("src", A);
            this.head.appendChild(D);
            this.Myload(D, B)
        },
        getStyle: function(A, B) {
            var B = function() {};
            if (callBack != undefined) {
                B = callBack
            }
            var C = document.createElement("link");
            C.setAttribute("type", "text/css");
            C.setAttribute("rel", "stylesheet");
            C.setAttribute("href", A);
            this.head.appendChild(C);
            this.Myload(C, B)
        }
    }
    function GetVerNum() {
        var D = new Date();
        return D.getFullYear().toString().substring(2, 4) + '.' + (D.getMonth() + 1) + '.' + D.getDate() + '.' + D.getHours() + '.' + (D.getMinutes() < 10 ? '0': D.getMinutes().toString().substring(0, 1))
    }
    Base.getScript('{G_TEMPLATES_JS}/mobile/Bottom.js?v=' + GetVerNum());
</script>

</div>
</body>
</html>
